package com.clkj.zhonghui.pojo.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
 * @author jiarun
 * @date Mon Jul 15 10:39:58 CST 2024
 */
@ApiModel ( value ="商品评论" )
@Table ( name ="t_zh_productComment" )
public class ProductComment  implements Serializable {

    @Id
   	@Column(name = "comment_id" , updatable = false)
	@ApiModelProperty( value="null")
	private Integer commentId;

	/**
	 * 商品ID
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品ID")
	private Integer productId;

	/**
	 * 评论内容
	 */
   	@Column(name = "comment_content" )
	@ApiModelProperty( value="评论内容")
	private String commentContent;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户ID")
	private Integer userId;

	/**
	 * 评论星级
	 */
   	@Column(name = "comment_star" )
	@ApiModelProperty( value="评论星级")
	private Integer commentStar;

	/**
	 * 评论时间
	 */
   	@Column(name = "comment_date" )
	@ApiModelProperty( value="评论时间")
	private String commentDate;

	/**
	 * 是否置顶 0否 1置顶
	 */
   	@Column(name = "topping" )
	@ApiModelProperty( value="是否置顶 0否 1置顶")
	private Integer topping;

	/**
	 * 审核状态0未审核  1已审核
	 */
   	@Column(name = "comment_status" )
	@ApiModelProperty( value="审核状态0未审核  1已审核")
	private Integer commentStatus;

   	@Transient
    private String userName;
   	@Transient
    private String userImg;

  public Integer getCommentId() {
    return commentId;
  }

  public void setCommentId(Integer commentId) {
    this.commentId = commentId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public String getCommentContent() {
    return commentContent;
  }

  public void setCommentContent(String commentContent) {
    this.commentContent = commentContent;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getCommentStar() {
    return commentStar;
  }

  public void setCommentStar(Integer commentStar) {
    this.commentStar = commentStar;
  }


  public String getCommentDate() {
    return commentDate;
  }

  public void setCommentDate(String commentDate) {
    this.commentDate = commentDate;
  }


  public Integer getTopping() {
    return topping;
  }

  public void setTopping(Integer topping) {
    this.topping = topping;
  }


  public Integer getCommentStatus() {
    return commentStatus;
  }

  public void setCommentStatus(Integer commentStatus) {
    this.commentStatus = commentStatus;
  }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
}
